package org.example.bighomework.TC;
import jakarta.persistence.*;
import lombok.Data;
//授课表和tc类对应
//使用联合主键
@Data
@Entity
@Table(name="tc")
@IdClass(TnoCnoPK.class)
public class TC{
    @Id
    @Column(name ="tno")//主键
    private String tno;
    @Id
    @Column(name ="cno")//主键
    private String cno;

    private String term;
}
